package com.xauto.pioneer.appuser.model;

import org.json.JSONObject;

/**
 * AccessToken
 * Created by Lemon on 16/4/18.
 */
public class AccessToken extends BaseModel<AccessToken> {

    public String access_token;

    public long expires_in;

    public String token_type;

    public String scope;

    @Override
    public AccessToken parse(JSONObject jsonObject) {
        if(jsonObject != null) {
            access_token = jsonObject.optString("access_token");
            expires_in = jsonObject.optLong("expires_in");
            token_type = jsonObject.optString("token_type");
            scope = jsonObject.optString("scope");
            return this;
        }
        return null;
    }
}
